package com.dog.basics.service.mtkj;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dog.basics.bean.dto.api.mtkj.ApiBasketAddDto;
import com.dog.basics.bean.dto.api.mtkj.ApiBasketEditDto;
import com.dog.basics.bean.dto.api.mtkj.ApiShoppingCarVo;
import com.dog.basics.bean.model.mtkj.MtBasket;
import com.dog.basics.bean.vo.api.mtkj.ApiBasketVo;
import com.dog.basics.common.util.PageParam;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * 购物车 服务类
 * </p>
 *
 * @author wph
 * @since 2020-11-09
 */
public interface IMtBasketService extends IService<MtBasket> {
    /**
     * @Description: 购物车列表
     * @Param: BasketFromDto
     * @return: IPage<PlatePageVo>
     * @Author: wph
     * @Date:
     */
    List<ApiShoppingCarVo> getPageList();


    /**
     * @Description: 增加购物车
     * @Param: BasketAddDto
     * @return: Boolean
     * @Author: wph
     * @Date: 2020/05/29  0027
     */
    Boolean saveObj(ApiBasketAddDto obj);

    /**
     * @Description: 修改购物车
     * @Param: BasketEditDto
     * @return: Boolean
     * @Author: wph
     * @Date: 2020/05/29  0027
     */
    Boolean editObj(ApiBasketEditDto obj);


    /**
     * @Description: 删除购物车
     * @Param: ids
     * @return: Boolean
     * @Author: wph
     * @Date: 2020/05/29  0027
     */
    Boolean deleteObj(List<Long> ids);
}
